import axios from "./index.js";
// 首页灾情信息
export const getExtraScreenStatisticLoss = (data) => {
  return axios.request({
    url: `/emergency/infoHomePage/getExtraScreenStatisticLoss?startTime=${data.startTime}&endTime=${data.endTime}`,
    method: "get"
  });
};
// 首页当日配电数据
export const todayPDstatistics = (data) => {
  return axios.request({
    url: "/emergency/emergencyInfoDetail/todayPDstatistics",
    method: "get",
    data: data
  });
};
// 首页输电变电详情s
export const getSubstationDetails = (data) => {
  return axios.request({
    url: "/emergency/infoHomePage/getSubstationDetails",
    method: "post",
    data: data
  });
};
